package com.tx.admin.annotation;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import com.tx.admin.entity.rbac.DataPermissionEntity.DataScope;

/**
 * 函数权限
 * @author 22155
 *
 */
@Retention(RUNTIME)
@Target(METHOD)
public @interface RbacMapping {
	
	//函数权限字符串
	String value();

	//是否开启数据权限
	boolean dataPermission() default true;
	
	//数据权限范围
	DataScope[] dataScopes() default {DataScope.user_none,DataScope.user_one,DataScope.department_one,DataScope.department_tree,DataScope.organization_one};

}
